/**
 * @name Icon
 * @author darcrand
 * @desc
 */

import React, { Component } from "react"
import "./styles.global.less"

class Icon extends Component {
    static defaultProps = {
        ico: ""
    }
    render() {
        return (
            <div className="icon-container" style={{ backgroundImage: `url("${this.props.ico}")` }}>
                <span>{this.props.children}</span>
            </div>
        )
    }
}

export default Icon
